Skip to content

Conversation

ammiellewb
Copy link

@ammiellewb ammiellewb commented Jul 22, 2025

run with poetry run python main.py

Comment on lines +26 to +37
# Agent 2: Issue Classification Agent
def classify_issue_type(issue_description: str) -> str:
"""Classify the type of customer issue based on description."""
# this could be a more sophisticated classification function
if any(word in issue_description.lower() for word in ["bill", "payment", "charge", "invoice"]):
return "billing"
elif any(word in issue_description.lower() for word in ["broken", "error", "not working", "technical"]):
return "technical"
elif any(word in issue_description.lower() for word in ["refund", "return", "cancel"]):
return "refund"
else:
return "general"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be an agent itself. users could enter information that is relevant but doesn't include those keywords. an agent with proper instructions will figure this out on its own

@@ -0,0 +1,186 @@
import os
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

break down this file into smaller files in different subfolders


async def main():
# Initialize the database first
await sdk_context.initialize_database()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to call this. it's called automatically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants